import json

import requests
response = requests.get("http://localhost:9896/EventExtract/assemble/getAssembleResult?nm=123&pageSize=2000&startDate=2022-05-25&endDate=2022-05-25").json()
with open("data2.json", "w", encoding="utf-8") as f:
    json.dump(response, f, ensure_ascii=False, indent=4)